package com.ruoyi.system.service.car4s_service.car4s_impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.car4s_mapper.Car4sPartsStockDetailMapper;
import com.ruoyi.system.domain.car4s_domain.Car4sPartsStockDetail;
import com.ruoyi.system.service.car4s_service.ICar4sPartsStockDetailService;

/**
 * 配件库存明细Service业务层处理
 * 
 * @author LK
 * @date 2024-06-29
 */
@Service
public class Car4sPartsStockDetailServiceImpl implements ICar4sPartsStockDetailService 
{
    @Autowired
    private Car4sPartsStockDetailMapper car4sPartsStockDetailMapper;

    /**
     * 查询配件库存明细
     * 
     * @param partsStockDetailId 配件库存明细主键
     * @return 配件库存明细
     */
    @Override
    public Car4sPartsStockDetail selectCar4sPartsStockDetailByPartsStockDetailId(Long partsStockDetailId)
    {
        return car4sPartsStockDetailMapper.selectCar4sPartsStockDetailByPartsStockDetailId(partsStockDetailId);
    }

    /**
     * 查询配件库存明细列表
     * 
     * @param car4sPartsStockDetail 配件库存明细
     * @return 配件库存明细
     */
    @Override
    public List<Car4sPartsStockDetail> selectCar4sPartsStockDetailList(Car4sPartsStockDetail car4sPartsStockDetail)
    {
        return car4sPartsStockDetailMapper.selectCar4sPartsStockDetailList(car4sPartsStockDetail);
    }

    /**
     * 新增配件库存明细
     * 
     * @param car4sPartsStockDetail 配件库存明细
     * @return 结果
     */
    @Override
    public int insertCar4sPartsStockDetail(Car4sPartsStockDetail car4sPartsStockDetail)
    {
        return car4sPartsStockDetailMapper.insertCar4sPartsStockDetail(car4sPartsStockDetail);
    }

    /**
     * 修改配件库存明细
     * 
     * @param car4sPartsStockDetail 配件库存明细
     * @return 结果
     */
    @Override
    public int updateCar4sPartsStockDetail(Car4sPartsStockDetail car4sPartsStockDetail)
    {
        return car4sPartsStockDetailMapper.updateCar4sPartsStockDetail(car4sPartsStockDetail);
    }

    /**
     * 批量删除配件库存明细
     * 
     * @param partsStockDetailIds 需要删除的配件库存明细主键
     * @return 结果
     */
    @Override
    public int deleteCar4sPartsStockDetailByPartsStockDetailIds(Long[] partsStockDetailIds)
    {
        return car4sPartsStockDetailMapper.deleteCar4sPartsStockDetailByPartsStockDetailIds(partsStockDetailIds);
    }

    /**
     * 删除配件库存明细信息
     * 
     * @param partsStockDetailId 配件库存明细主键
     * @return 结果
     */
    @Override
    public int deleteCar4sPartsStockDetailByPartsStockDetailId(Long partsStockDetailId)
    {
        return car4sPartsStockDetailMapper.deleteCar4sPartsStockDetailByPartsStockDetailId(partsStockDetailId);
    }
}
